<template>
  <div class="frame">
    <el-dialog
      :title="this.$t('ad.successCreated')"
      :visible.sync="showIn"
      width="500px"
      :before-close="closeFrame"
    >
      <div class="content ">
        <div class="content-img"> <img src="../assets/images/chenggon.png" alt=""> </div>
        <div class="content-text">{{$t("ad.successNotice")}}</div>
        <div class="content-button" @click="confirm()">{{$t("ad.confirm")}}</div>
      </div>
    </el-dialog>
  </div>
</template>
<script>
  export default{
    data(){
      return{
        showIn:true,
      }
    },
    methods:{
      // 转入
      closeFrame(){
        this.$emit('successListen',false)
      },
      confirm(){
        this.$emit('successListen',false)
      }


    }
  }
</script>
<style lang="less" scoped>
  .frame{
    .content{
      padding: 0 20px;
      &-img{
        width: 80px;
        margin: 40px auto;
        img{
          width: 100%;
          height: 100%;
        }
      }
      &-text{
        text-align: center;
      }
      &-button{
        margin: 45px 0 0;
        border-radius: 4px;
        border: none;
        background-color: #98889b;
        width: 100%;
        text-align: center;
        line-height: 41px;
        font-size: 14px;
        color: #fff;
        cursor: pointer;
      }
    }
  }

</style>
<style lang="less" >
  .frame{
    .el-dialog__wrapper{
      .el-dialog{
        border-radius: 8px;
      }
      .el-dialog__header{
        border-bottom:1px solid #eaedf5;
        color:#000000;
        font-size: 18px;
        font-weight: bold;
        padding:20px;
      }
      .el-dialog__body{
        padding:30px 0;
      }
      .el-dialog__headerbtn .el-dialog__close{
        color: #666666;

      }
    }
  }
</style>


